package Views;

import java.awt.Color;
import java.awt.Graphics;

/**
 *
 * @author KOK Leng-Steven & RIEU Simon
 */
public class Circle extends DrawableForm
{

    public Circle(int width, int height, int x, int y)
    {
        super(width, height, x, y);
    }
    
    public Circle(int x, int y)
    {
        this(20,20,x,y);
    }

    @Override
    public void draw(Graphics g)
    {
        g.setColor(Color.BLACK);
        g.drawOval(this.x, this.y, width, height);
        
        //Default
        if (this.color.equals(Color.WHITE))
        {
            g.setColor(this.color);
            g.fillOval(this.x, this.y, width, height);
        } 
        //Avatar
        if (this.color.equals(Color.RED))
        {
            g.setColor(this.color);
            g.fillOval(this.x, this.y, width, height);
        } 
        
        //Avatar seeing byStanders
        else if (this.color.equals(Color.BLUE))
        {
            g.setColor(this.color);
            g.fillOval(this.x, this.y, width, height);
        }
        //ByStanders
        else if (this.color.equals(Color.GRAY))
        {
            g.setColor(this.color);
            g.fillOval(this.x, this.y, width, height);
        }

    }
}
